package com.Txunda.fxw.ui.toolkit.util;

import android.content.Context;
import android.content.SharedPreferences;

public class PreferenceUtil {
	
    public static String SP_NMAE = "Region_Name";
	public static String sp_mode = "area_name";
	
	public static String sp_lnt = "area_lnt";
	public static String sp_lat ="area_lat";
	public static String sp_district ="area_district";
	
	public static String sp_logo ="logo";
	
	
	//д�뷽��
	public static void write(Context context,String key,String value){
		SharedPreferences sharedPreferences = context.getSharedPreferences(SP_NMAE, Context.MODE_APPEND);
		sharedPreferences.edit().putString(key, value).commit();
		
	}
	//��ȡ����
	public static String readString(Context context,String key){
		SharedPreferences sharedPreferences = context.getSharedPreferences(SP_NMAE, Context.MODE_APPEND);
		return sharedPreferences.getString(key, "");
	}
	
	

}
